<template>
  <div>
    <input type="button" value="点我获取数据" @click="acquire">
  </div>
</template>

<script>
import axios from "axios";

const options = {
  data: function () {
    return {}
  },
  methods: {
    async acquire() {
      const resp = await axios.get()
      console.log(resp);
    }
  }
}
export default options
</script>

<style>

</style>